package applicationServer.logic;


import javax.sip.address.Address;

public class MediaServerInfo implements StreamerInfo{

	String _id = null;
	String _name = null;
	String _media = null;
	String _address = null;
	int _port = 0;
	Address _addressheader = null;
	
	public MediaServerInfo (String name,String add,String media,int port){
		_name = name;
		_media = media;
		_address = add;
		_port = port;
		_id = "<" +_name + "@" + _address + ":" + _port + ">";
	}
	public String get_media() {
		return _media;
	}
	public void set_media(String media) {
		_media = media;
	}
	public String get_address() {
		return _address;
	}
	public void set_address(String address) {
		this._address = address;
	}
	public int get_port() {
		return _port;
	}
	public void set_port(int port) {
		_port = port;
	}

	public String get_id() {
		return _id;
	}

	public void set_id(String _id) {
		this._id = _id;
	}

	public Address get_addressheader() {
		return _addressheader;
	}

	public void set_addressheader(Address _addressheader) {
		this._addressheader = _addressheader;
	}
	
	public String get_addressText (){
		return _id + "@" + _address + ":" + _port;
		
	}
	public String get_name() {
		return _name;
	}
	public void set_name(String name) {
		_name = name;
		
	}
}

